package top.tenebrous.termbor.rpc.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(scanBasePackages = "top.tenebrous")
public class TermborRpcServerExampleApplication {

    public static void main(String[] args) {
        SpringApplication.run(TermborRpcServerExampleApplication.class, args);
    }

    @Bean
    public RpcSingleManger rpcSingleManger() {
        RpcSingleManger manger =
            new RpcSingleManger("127.0.0.1:27880", "124.222.198.3:8848", "nacos", "randomWeight", "top.tenebrous",
                "cglib");
        manger.start();
        return manger;
    }

}